package com.wanwu.channel.notify.controller;

import com.wanwu.channel.common.util.DateUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @ClassName
 * @Description ！！！！！注意：探活器不可删除，否则会导致业务不可用
 * @Author husheng
 * @Date 2020-04-07 15:09
 */
@RestController
@RequestMapping("/")
public class HealthCheckController {

    /**
     * 探活
     */
    @RequestMapping(value = "api/health/check")
    @ResponseBody
    public String test() {
        return "channel-server alive, current time: " + DateUtils.get(1, new Date());
    }
}
